package com.codedancer.campus.manager.service.vo.menu;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.Data;

@Data
@ApiModel(value = "菜单Vo")
public class MenuVO {

    @ApiModelProperty("uuid")
    private String uuid;

    @ApiModelProperty("菜单名称")
    private String name;

    @ApiModelProperty("是否有儿子")
    private Boolean hasChildren = false;

    @ApiModelProperty("路径")
    private String path;

    @ApiModelProperty("组件名称")
    private String componentName;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    @ApiModelProperty("父级uuid")
    private String parentUuid;

    @ApiModelProperty("图标")
    private String icon;

    @ApiModelProperty("是否是菜单")
    private Boolean isMenu;

    @ApiModelProperty("上级菜单名称")
    private String parentMenuName;

    @ApiModelProperty("是否是路由")
    private Boolean isRouter;

    @ApiModelProperty("排序")
    private Integer sort;

    @ApiModelProperty("是否隐藏")
    private Boolean isHidden;
}
